package com.chixing.day03_oop;

/*
   访问修饰符public存在的问题:
            1、修改某一处属性名后其他地方也需要修改，可维护性差；
            2、元信息（meta）暴露出来，安全性低；

   解决方案：
       安全性低：改用private
       public：由public 修饰的属性、方法，其他类都能访问
       private：private 修饰的属性、方法，只能本类访问
       可维护性：只需要修改本类；
 */

public class Company {
    //成员变量（字段）field
    private int companyId;

    private String companyName;
    private String companyAddress;
    private String companyType;
    private long companyTelNo;

    //成员方法 method
    //发布一个新岗位
    public void publishJob(){

    }
    //查看简历
    public void getResume(){

    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public long getCompanyTelNo() {
        return companyTelNo;
    }

    public void setCompanyTelNo(long companyTelNo) {
        this.companyTelNo = companyTelNo;
    }
}
